﻿//ICommissionService.cs
//Copyright (c) 2013 StockSharp LLC, all rights reserved.
//This code module is part of StockSharp library.
//This code is licensed under the GNU GENERAL PUBLIC LICENSE Version 3.
//See the file License.txt for the license details.
//More info on: http://stocksharp.com

namespace StockSharp.Algo.Commissions
{
	using System.ServiceModel;

	/// <summary>
	/// Интерфейс к серверу лицензий.
	/// </summary>
	[ServiceContract(Namespace = "http://stocksharp.com/services/commissionservice.svc")]
	public interface ICommissionService
	{
		/// <summary>
		/// Получить список названий комиссий.
		/// </summary>
		/// <param name="login">Логин.</param>
		/// <param name="password">Пароль.</param>
		/// <returns>Названия комиссий.</returns>
		[OperationContract]
		string[] GetNames(string login, string password);

		/// <summary>
		/// Получить правила комиссии по ее названию.
		/// </summary>
		/// <param name="login">Логин.</param>
		/// <param name="password">Пароль.</param>
		/// <param name="name">Название комиссии.</param>
		/// <returns>Правила комиссии.</returns>
		[OperationContract]
		CommissionRule[] GetRules(string login, string password, string name);
	}
}